package com.ruoyi.camera.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.camera.mapper.AiCameraMapper;
import com.ruoyi.camera.domain.AiCamera;
import com.ruoyi.camera.service.IAiCameraService;
import com.ruoyi.common.core.text.Convert;

/**
 * 摄像头识别Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Service
public class AiCameraServiceImpl implements IAiCameraService 
{
    @Autowired
    private AiCameraMapper aiCameraMapper;

    /**
     * 查询摄像头识别
     * 
     * @param id 摄像头识别主键
     * @return 摄像头识别
     */
    @Override
    public AiCamera selectAiCameraById(Long id)
    {
        return aiCameraMapper.selectAiCameraById(id);
    }

    /**
     * 查询摄像头识别列表
     * 
     * @param aiCamera 摄像头识别
     * @return 摄像头识别
     */
    @Override
    public List<AiCamera> selectAiCameraList(AiCamera aiCamera)
    {
        return aiCameraMapper.selectAiCameraList(aiCamera);
    }

    /**
     * 新增摄像头识别
     * 
     * @param aiCamera 摄像头识别
     * @return 结果
     */
    @Override
    public int insertAiCamera(AiCamera aiCamera)
    {
        return aiCameraMapper.insertAiCamera(aiCamera);
    }

    /**
     * 修改摄像头识别
     * 
     * @param aiCamera 摄像头识别
     * @return 结果
     */
    @Override
    public int updateAiCamera(AiCamera aiCamera)
    {
        return aiCameraMapper.updateAiCamera(aiCamera);
    }

    /**
     * 批量删除摄像头识别
     * 
     * @param ids 需要删除的摄像头识别主键
     * @return 结果
     */
    @Override
    public int deleteAiCameraByIds(String ids)
    {
        return aiCameraMapper.deleteAiCameraByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除摄像头识别信息
     * 
     * @param id 摄像头识别主键
     * @return 结果
     */
    @Override
    public int deleteAiCameraById(Long id)
    {
        return aiCameraMapper.deleteAiCameraById(id);
    }

}
